From b8eac1e130967753396e120042d6f85abf040e83 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 15 May 2011 02:55:22 +0200 Subject: [PATCH] reftests: Add a check for matching regions only once --- tests/reftests/Makefile.am | 3 ++ tests/reftests/css-match-regions.css | 19 +++++++ tests/reftests/css-match-regions.ref.ui | 71 +++++++++++++++++++++++++ tests/reftests/css-match-regions.ui | 68 +++++++++++++++++++++++ 4 files changed, 161 insertions(+) create mode 100644 tests/reftests/css-match-regions.css create mode 100644 tests/reftests/css-match-regions.ref.ui create mode 100644 tests/reftests/css-match-regions.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 4e1e11cc4f..6ad435c444 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -35,6 +35,9 @@ EXTRA_DIST += \ css-match-name.css \ css-match-name.ref.ui \ css-match-name.ui \ + css-match-regions.css \ + css-match-regions.ref.ui \ + css-match-regions.ui \ css-match-subtype.css \ css-match-subtype.ref.ui \ css-match-subtype.ui \ diff --git a/tests/reftests/css-match-regions.css b/tests/reftests/css-match-regions.css new file mode 100644 index 0000000000..901534fde0 --- /dev/null +++ b/tests/reftests/css-match-regions.css @@ -0,0 +1,19 @@ +* { + color: blue; +} + +.notebook tab GtkLabel { + color: blue +} +.notebook tab tab GtkLabel { + color: red +} + +/* for reference */ +#blue { + color: blue +} + +#red { + color: red +} diff --git a/tests/reftests/css-match-regions.ref.ui b/tests/reftests/css-match-regions.ref.ui new file mode 100644 index 0000000000..84cce501ee --- /dev/null +++ b/tests/reftests/css-match-regions.ref.ui @@ -0,0 +1,71 @@ + + + + + False + popup + + + True + True + + + True + False + Normal + + + + + True + False + Blue + blue + + + False + + + + + True + False + Normal + + + 1 + + + + + True + True + + + True + False + Blue + blue + + + + + True + False + Red + red + + + False + + + + + 1 + False + + + + + + diff --git a/tests/reftests/css-match-regions.ui b/tests/reftests/css-match-regions.ui new file mode 100644 index 0000000000..e0abc17758 --- /dev/null +++ b/tests/reftests/css-match-regions.ui @@ -0,0 +1,68 @@ + + + + + False + popup + + + True + True + + + True + False + Normal + + + + + True + False + Blue + + + False + + + + + True + False + Normal + + + 1 + + + + + True + True + + + True + False + Blue + + + + + True + False + Red + + + False + + + + + 1 + False + + + + + + -- 2.30.2